package org.wzq.gradle_learn;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;


public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // read strValue from gradle defin
        String s = getResources().getString(R.string.build_config_sandbox);
        Log.v("gradle_learn", "build_config_sandbox = " + s);

        // 以下如果报错，build一下就好，BuildConfig这个类是编译时 生成的
        Log.v("gradle_learn", "BuildConfig.buildArg = " + BuildConfig.buildArg);
    }
}
